﻿namespace Homework07
{/// <summary>
/// 输入一个分数，给出其ABCD
/// </summary>
    internal class Homework07
    {
        static void Main()
        {
            Console.WriteLine("请输入一个分数：");
            double num = double.Parse(Console.ReadLine());
            if (num <= 100 && num >= 90)
            { Console.WriteLine("等级为A"); }
            if (num < 90 && num >= 70)
            { Console.WriteLine("等级为B"); }
            if (num < 70 && num >= 60)
            { Console.WriteLine("等级为C"); }
            if (num < 60)
            { Console.WriteLine("等级为D"); }

        }
    }
}
